Auto Serving webp if available/exists#15
Merged
fabriciojs merged 5 commits intomasterfrom Oct 24, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds automatic WebP image serving support for WordPress installations and updates the build configuration to support PHP 8.4 while removing support for PHP 7.4 and 8.0.
- Introduces Nginx configuration to automatically serve WebP versions of JPEG/PNG images when clients support them
- Adds PHP 8.4 build targets and removes outdated PHP 7.4 and 8.0 builds
- Standardizes Dockerfile
ASkeyword capitalization across all build variants
Reviewed Changes
Copilot reviewed 33 out of 33 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| template/wordpress-webp-conf.blade.php | New Nginx configuration template for WebP support with client detection and caching headers |
| template/entrypoint.blade.php | Modified to inject WebP configuration include directive into Nginx config |
| template/Dockerfile.blade.php | Updated to copy WebP config file and standardized AS keyword capitalization |
| kool.yml | Added build commands for PHP 8.4 nginx and nginx-prod variants |
| fwd-template.json | Restructured build configurations: added 8.4, removed 7.4/8.0, added wordpress-webp.conf to all builds |
| 8.*/wordpress-webp.conf | Generated WebP configuration files for all PHP versions (8.1-8.4) |
| 8.*/entrypoint | Generated entrypoint scripts with WebP config injection for all versions |
| 8.*/Dockerfile | Generated Dockerfiles with WebP config copy and standardized AS capitalization |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.